//package com.example;
//
//import com.chinasoftbank.contract.business.client.*;
//import com.chinasoftbank.contract.business.mapper.*;
//import com.chinasoftbank.contract.business.service.ContractService;
//import com.chinasoftbank.contract.business.service.ContractSignDetailsService;
//import com.chinasoftbank.contract.commons.mapper.AttachmentMapper;
//import com.chinasoftbank.contract.commons.mapper.ComAccountMapper;
//import com.chinasoftbank.contract.commons.mapper.SysMapper;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.PostConstruct;
//import javax.annotation.Resource;
//
//@Component
//public class BeanComponentUtil {
//
//    private static BeanComponentUtil beanComponentUtil;
//
//    @Resource
//    private CustomerMapper customerMapper;
//    @Resource
//    private AttachmentMapper attachmentMapper;
//    @Resource
//    private ContractMapper contractMapper;
//    @Resource
//    private FileClient fileClient;
//    @Resource
//    private EsignClient esignClient;
//    @Resource
//    private ContractService contractService;
//    @Resource
//    private ContractSignDetailsService contractSignDetailsService;
//    @Resource
//    private ContractSignDetailsMapper contractSignDetailsMapper;
//    @Resource
//    private ComAccountMapper comAccountMapper;
//    @Resource
//    private ComAccountClient comAccountClient;
//    @Resource
//    private SysUserMapper sysUserMapper;
//    @Resource
//    private ContractSignMapper contractSignMapper;
//    @Resource
//    private ActivitiClient activitiClient;
//    @Resource
//    private ProjectMapper projectMapper;
//    @Resource
//    private SysMapper sysMapper;
//    @Resource
//    private CustClient custClient;
//
//    @Resource
//    private SmsMapper smsMapper;
//
//    // 工作流相关配置
//    @Value("${activiti.supplier.businessCode}")
//    private String activitiSupplierBusinessCode;
//
//    // 合同相关参数配置
//    @Value("${contract.electronicContract.targetPath}")
//    private String targetPath;
//
//    @Value("${contract.electronicContract.roleCode}")
//    private String roleCode;
//
//    @Value("${contract.electronicContract.xlSignRole}")
//    private String xlSignRole;
//
//    @Value("${contract.electronicContract.gysAdminRole}")
//    private String gysAdminRole;
//    @Value("${contract.electronicContract.postCM}")
//    private String postCM;
//
//    @Value("${contract.electronicContract.tenantCode}")
//    private String tenantCode;
//
//    @Value("${contract.electronicContract.platform}")
//    private String platform;
//
//    // fs相关配置
//    @Value("${fs.isPublic}")
//    private String isPublic;
//
//    @Value("${fs.serviceId}")
//    private String serviceId;
//
//    // 电子签章相关配置
//    @Value("${esign.signContract.manualSign}")
//    private String manualSign;
//
//    @Value("${esign.signContract.externalMaualSign}")
//    private String externalMaualSign;
//
//    @Value("${esign.signContract.signatId}")
//    private String signatId;
//
//    @Value("${esign.contract.contractType}")
//    private String contractType;
//
//    @Value("${esign.agreement.esignPage}")
//    private String agreementEsignPage;
//
//    @Value("${esign.cgContract.positionKeyWord}")
//    private String positionKeyWord;
//
//    @Value("${esign.cgContract.signKeyWord}")
//    private String signKeyWord;
//
//    @Value("${esign.company.userId}")
//    private String userId;
//
//    @Value("${esign.company.name}")
//    private String name;
//
//    @Value("${esign.company.unifiedCode}")
//    private String unifiedCode;
//
//    @Value("${esign.company.contactsPhone}")
//    private String contactsPhone;
//
//    @Value("${esign.company.address}")
//    private String address;
//
//    @Value("${server.environment}")
//    private String environment;
//
//    public static String getEnvironment() {
//        return beanComponentUtil.environment;
//    }
//
//    public static String getXlSignRole() {
//        return beanComponentUtil.xlSignRole;
//    }
//
//    public static String getGysAdminRole() {
//        return beanComponentUtil.gysAdminRole;
//    }
//
//    public static String getPostCM() {
//        return beanComponentUtil.postCM;
//    }
//
//    public static String getTenantCode() {
//        return beanComponentUtil.tenantCode;
//    }
//
//    public static String getPlatform() {
//        return beanComponentUtil.platform;
//    }
//
//    public static String getExternalMaualSign() {
//        return beanComponentUtil.externalMaualSign;
//    }
//
//    public static String getActivitiSupplierBusinessCode() {
//        return beanComponentUtil.activitiSupplierBusinessCode;
//    }
//
//    public static String getRoleCode() {
//        return beanComponentUtil.roleCode;
//    }
//
//    public static String getPositionKeyWord() {
//        return beanComponentUtil.positionKeyWord;
//    }
//
//    public static String getSignKeyWord() {
//        return beanComponentUtil.signKeyWord;
//    }
//
//    public static String getAgreementEsignPage() {
//        return beanComponentUtil.agreementEsignPage;
//    }
//
//    public static String getContractType() {
//        return beanComponentUtil.contractType;
//    }
//
//    public static String getUserId() {
//        return beanComponentUtil.userId;
//    }
//
//    public static String getName() {
//        return beanComponentUtil.name;
//    }
//
//    public static String getUnifiedCode() {
//        return beanComponentUtil.unifiedCode;
//    }
//
//    public static String getContactsPhone() {
//        return beanComponentUtil.contactsPhone;
//    }
//
//    public static String getAddress() {
//        return beanComponentUtil.address;
//    }
//
//    public static String getSignatId() {
//        return beanComponentUtil.signatId;
//    }
//
//    public static String getManualSign() {
//        return beanComponentUtil.manualSign;
//    }
//
//    public static String getServiceId() {
//        return beanComponentUtil.serviceId;
//    }
//
//    public static String getIsPublic() {
//        return beanComponentUtil.isPublic;
//    }
//
//    public static String getTargetPath() {
//        // return "D:\\tmp\\";
//        return beanComponentUtil.targetPath;
//    }
//
//    public static ProjectMapper getProjectMapper() {
//        return beanComponentUtil.projectMapper;
//    }
//
//    public static ActivitiClient getActivitiClient() {
//        return beanComponentUtil.activitiClient;
//    }
//
//    public static ContractSignMapper getContractSignMapper() {
//        return beanComponentUtil.contractSignMapper;
//    }
//
//    public static SysUserMapper getSysUserMapper() {
//        return beanComponentUtil.sysUserMapper;
//    }
//
//    public static ComAccountClient getComAccountClient() {
//        return beanComponentUtil.comAccountClient;
//    }
//
//    public static ComAccountMapper getComAccountMapper() {
//        return beanComponentUtil.comAccountMapper;
//    }
//
//    public static CustomerMapper getCustomerMapper() {
//        return beanComponentUtil.customerMapper;
//    }
//
//    public static AttachmentMapper getAttachmentMapper() {
//        return beanComponentUtil.attachmentMapper;
//    }
//
//    public static ContractMapper getContractMapper() {
//        return beanComponentUtil.contractMapper;
//    }
//
//    public static FileClient getFileClient() {
//        return beanComponentUtil.fileClient;
//    }
//
//    public static EsignClient getEsignClient() {
//        return beanComponentUtil.esignClient;
//    }
//
//    public static ContractService getContractService() {
//        return beanComponentUtil.contractService;
//    }
//
//    public static ContractSignDetailsService getContractSignDatailsService() {
//        return beanComponentUtil.contractSignDetailsService;
//    }
//
//    public static ContractSignDetailsMapper getContractSignDetailsMapper() {
//        return beanComponentUtil.contractSignDetailsMapper;
//    }
//
//    public static SysMapper getSysMapper() {
//        return beanComponentUtil.sysMapper;
//    }
//
//    public static CustClient getCustClient() {
//        return beanComponentUtil.custClient;
//    }
//
//    public static SmsMapper getSmsMapper() {
//        return beanComponentUtil.smsMapper;
//    }
//
//    @PostConstruct
//    public void init() {
//        beanComponentUtil = this;
//        beanComponentUtil.customerMapper = this.customerMapper;
//        beanComponentUtil.attachmentMapper = this.attachmentMapper;
//        beanComponentUtil.contractMapper = this.contractMapper;
//        beanComponentUtil.fileClient = this.fileClient;
//        beanComponentUtil.esignClient = this.esignClient;
//        beanComponentUtil.contractService = this.contractService;
//        beanComponentUtil.comAccountMapper = this.comAccountMapper;
//        beanComponentUtil.comAccountClient = this.comAccountClient;
//        beanComponentUtil.sysUserMapper = this.sysUserMapper;
//        beanComponentUtil.contractSignDetailsService = this.contractSignDetailsService;
//        beanComponentUtil.contractSignDetailsMapper = this.contractSignDetailsMapper;
//        beanComponentUtil.contractSignMapper = this.contractSignMapper;
//        beanComponentUtil.activitiClient = this.activitiClient;
//        beanComponentUtil.projectMapper = this.projectMapper;
//        beanComponentUtil.sysMapper = this.sysMapper;
//        beanComponentUtil.custClient = this.custClient;
//        beanComponentUtil.smsMapper = this.smsMapper;
//    }
//}
